home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Writing to a SUSink < prev   
Encoding:
Internet Message Format  |  1996-09-19  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     Writing to a SUSink
  2. Sent:        9/18/96 11:04 AM
  3. Received:    9/18/96 11:04 AM
  4. From:        Jerome Jahnke <j-jahnke@uchicago.edu>
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. I decided at a later date to make a part I had been working into an
  10. embeddable part. So what I did is steal all the code from a new embeddable
  11. part made with PartMaker but I can't open it.
  12.  
  13. When I create the stationary I have this in my CBaseContent class.
  14.  
  15.     unsigned long count = fProxyList->Count();
  16.     archive << count;
  17.  
  18. But when I try to open the stationry my Internalize function which looks
  19. like this.
  20.  
  21.     unsigned long count;
  22.     archive >> count;
  23.  
  24. says that count is 0x0000FFFF instead of 0x00000000 which is what I put
  25. there. So why are the last four bytes F's instead of 0's and should I
  26. convert those to FW_Fixed's which seem to write OK. I haven't tried that,
  27. but this is the next step. I am curious if The sink is only reading or
  28. writing the first four bytes. Or if I am doing something really really
  29. wrong.
  30.  
  31. Jer,
  32.  
  33. ------------------------------------------------------------------------------
  34. Jerome Jahnke          |Well, I was only a kid didn't know enough to be afraid
  35. BSD Academic Computing |Playing the game, but not the way the big boys played
  36. University of Chicago  |Nothing to lose maybe I had something to trade
  37. j-jahnke@uchicago.edu  |The way the big wheel spins * The Big Wheel -- N Peart
  38. ------------------------------------------------------------------------------
  39. รน